﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace OttawaTourMap
{
    public partial class MainMenuPage : PhoneApplicationPage
    {
       
        public MainMenuPage()
        {
            InitializeComponent();

           this.Loaded += new RoutedEventHandler(MainMenuPage_Loaded);// Load tours data for the ViewModel Items

        }

        private void MainMenuPage_Loaded(object sender, RoutedEventArgs e)
        {
            if (!App.TourList.isTourFileLoaded())
            {
                App.TourList.parseXML();
            }
        
        }

        private void Image_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            NavigationService.Navigate(new Uri("/TourInfo.xaml", UriKind.Relative));

        }

         
       
    }
}